package org.jeecg.modules.API.threadTest;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;
import java.util.concurrent.TimeoutException;

@RestController
public class threadcroller {
    private static final Logger logger = LoggerFactory.getLogger(threadcroller.class);

    @Autowired
    private threadserviceimp asyncService;

    @RequestMapping("/")
    public String submit() throws IOException, TimeoutException, NoSuchFieldException, IllegalAccessException {


        //调用service层的任务
        asyncService.executeAsync();



        return "success";
    }
}
